package com.neuedu.service.impl;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.neuedu.entity.Department;
import com.neuedu.mapper.DepartmentMapper;
import com.neuedu.service.DepartmentService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2024-04-23
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {

    @Override
    public Page<Department> page(Integer pageNo, Integer pageSize) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("dept_type", "门诊")
                .eq("delmark", 1);
        return this.page(new Page<>(pageNo, pageSize), wrapper);
    }
}
